/*
 * @Author: long
 * @Date: 2021-09-23 15:13:56
 * @LastEditTime: 2021-09-23 15:34:08
 * @LastEditors: Please set LastEditors
 * @Description: 全局业务数据过滤
 * @FilePath: \ant-design-vue-jeecge:\hjimi\人脸辨识云\html\gitlab\pc\facecloudwebsite\src\filters\business.js
 */

/**
 * @description: 应用id转为对应名称
 * @param {String, Array}
 */
 export function filterAppId(string, appId) {
      let appName = null
    
      for(let i = 0; i < appId.length; i++) {
        if(appId[i].id === string) {
          appName = appId[i].name
        }
      }
      return appName
   }